package com.lagou;

import com.lagou.edu.servlet.TransferServlet;
import com.lagou.homework.DefaultListableBeanFactory;
import com.lagou.homework.annotation.ComponentScan;

import java.util.List;

/**
 * @author boting.guo
 * @date 2021/9/19 15:04
 */

@ComponentScan("com.lagou.edu")
public class Appstarter {

	public static void main(String[] args) throws Exception {
		DefaultListableBeanFactory defaultListableBeanFactory = new DefaultListableBeanFactory(Appstarter.class);
		List<String> beanNames = defaultListableBeanFactory.getBeanDefinitionNames();
		for (String beanName: beanNames) {
			System.out.println(beanName);
		}
	}
}
